/**
 * Created by 黄忠园 on 2017/12/25.
 */
angular.module('service.job.JobDispatch', [
        'ngResource',
        'ngCookies'
    ])
    .service('JobJobDispatchService', JobJobDispatchService);
JobJobDispatchService.$inject = ['$resource'];
function JobJobDispatchService($resource) {

    // 根据jobId查询派单记录
    this.getOrderRecord = function (jobId, success, error) {
        var resource = $resource(joburl + "/jobDispatch/:jobId");
        return resource.query({jobId: jobId}, success, error);
    }
}